package cst.a931xmc.yuejian20.Service;

import java.util.List;

import cst.a931xmc.yuejian20.Bean.AppBean;
import cst.a931xmc.yuejian20.Bean.AppnumUpdateBean;
import cst.a931xmc.yuejian20.Bean.TrainBean;
import cst.a931xmc.yuejian20.Bean.TrainOrderBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface TrainService {
    @GET("api/Train/getTrainList")
    Call<List<TrainBean>> getTrainList(@Query("type") int train_type);
    @GET("api/Train/getTrainDetail")
    Call<TrainBean> getTrainDetail(@Query("id") int train_id);
    @GET("api/Train/updateTrainAppNum")
    Call<AppnumUpdateBean> updateTrainAppNum(@Query("id") int train_id,
                                                @Query("num") int train_appnum);

    @GET("api/Trainorder/order")
    Call<AppBean> order(@Query("tid") int train_id,
                        @Query("name") String train_name,
                        @Query("pic") String train_pic,
                        @Query("intro") String train_intro,
                        @Query("uid") int user_id,
                        @Query("rname") String torder_rname,
                        @Query("tel") String torder_tel,
                        @Query("idcard") String torder_idcard,
                        @Query("num") int torder_num,
                        @Query("price") String torder_price);
    @GET("api/Trainorder/getTrainorderList")
    Call<List<TrainOrderBean>> getTrainorderList(@Query("id") int user_id);
    @GET("api/Trainorder/getTrainorderDetail")
    Call<TrainOrderBean> getTrainorderDetail(@Query("id") int torder_id);
}
